c# distinct array of objects by values

75

c# distinct array of objects by values -

var uniquePersons = persons.GroupBy(p => p.Email)
                           .Select(grp => grp.First())
                           .ToArray();

Comments

Submit
0 Comments